In order to simulate interactions of fluids with solid boundaries, a boundary handling algorithm based on weakly compressible Smoothed Particle Hydrodynamics (SPH) was presented. First, a novel volume-weighted function was introduced to solve the density estimation errors in non-uniformly sampled solid boundary regions. Then, a new boundary force computation model was proposed to avoid penetration without position correction of fluid particles. Last, an improved fluid pressure force model was proposed to enforce the weak incompressibility constraint. The experimental results show that the proposed method can effectively solve the stability problem of interactions of weakly compressible fluids and non-uniformly sampled solid boundaries using position correction-based boundary handling method. In addition, only the positions of boundary particles are needed, thus the memory as well as the extra computation due to position correction can be saved.